package webServices;

import javax.jws.WebService;
import javax.xml.ws.Endpoint;

/**
 * @Author: webmaster@pavel-kaminsky.com
 * @Date: 11/09/11
 */
@WebService
public class CalculatorWS {

    public int add(int a , int b) {
        return a+b;
    }


    public static void main(String[] args) {
        Endpoint.publish("http://localhost:8080/calculator",new CalculatorWS());
    }
}
